package cn.stylefeng.guns.modular.businessArea.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.scanner.api.annotation.field.ChineseDescription;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 业务领域表封装类
 *
 * @author jizhongbao
 * @date 2022/01/10 15:07
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessAreaRequest extends BaseRequest {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {edit.class, delete.class, changeStatus.class})
    @ChineseDescription("id")
    private Integer id;

    /**
     * icon
     */
    @ChineseDescription("icon")
    private Long icon;

    /**
     * 主图id
     */
     @ChineseDescription("fileId")
    private Long fileId;

    /**
     * 标题英文
     */
     @ChineseDescription("etitle")
    private String etitle;

    /**
     * 标题
     */
    @ChineseDescription("标题")
    private String title;

    /**
     * 简介
     */
    @ChineseDescription("简介")
    private String introduction;

    /**
     * 排序
     */
    @ChineseDescription("排序")
    private Integer sort;

    /**
     * 状态 1可用，2禁用
     */
    @NotNull(message = "状态不能为空", groups = {changeStatus.class})
    @ChineseDescription("状态 1可用，2禁用")
    private Integer status;

    public @interface changeStatus {
    }
}